Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump electron to the latest version 33.2.0 (WPB-11996) #8352

Merged
merged 4 commits into from
Nov 15, 2024

Conversation

V-Gira
Copy link
Contributor

@V-Gira V-Gira commented Nov 15, 2024

Description

Upgrade to the latest stable version of electron. https://github.com/electron/electron/releases/tag/v33.2.0

List of mjor version changes

Notable breaking change

This change electron/electron#43404 introduced in Electron 33 and backported to 32 and 31 require us to change our system menu click handler as the type of the target window changed from BrowserWindow to BaseWindow

@echoes-hq echoes-hq bot added the echoes: technical-roadmap/technical-debt Changes intended at mitigating risks label Nov 15, 2024
Comment on lines 83 to 85
if (baseWindow instanceof BrowserWindow) {
baseWindow.webContents.send(channel, ...args);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe will be nice ot add some log if not exist ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try catch in there in case the window is undefined or the wrong type?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No no.. I mean if there will be not !(baseWindow instanceof BrowserWindow) { console.error('baseWindow not exist in BrowserWindow')} or smth like that, because if will not exist will be hard to find issue :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about this? 8ee5b56

Copy link

sonarcloud bot commented Nov 15, 2024

@V-Gira V-Gira merged commit 239e5ea into dev Nov 15, 2024
7 checks passed
Copy link
Contributor

@e-maad e-maad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@V-Gira V-Gira deleted the v/electron-upgrade branch November 15, 2024 13:15
V-Gira added a commit that referenced this pull request Nov 15, 2024
* chore: bump electron to 33.2.0

* chore: create helper function to send menu events to web content

* runfix: use helper function to address electron api type change

* chore: log helper function errors
V-Gira added a commit that referenced this pull request Nov 15, 2024
chore: bump electron to the latest version 33.2.0 (WPB-11996) (#8352)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants